import threading
from lslSender import LSLSender
import numpy as np

use_simulator=1

mLSL = LSLSender('dummy')
def simulator_timer_handler():
    e = np.random.randint(0,65535,(80))
    for i in range(10):
        mLSL.send_eeg_mii(e[i*8:i*8+8])

simulator_timer = threading.Timer(1, simulator_timer_handler)  # 10秒后执行my_task

if use_simulator:
    simulator_timer.start()

